<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>企业福利商城 - 首页</title>
    <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
        }

        /* 顶部导航栏 */
        .header {
            background-color: white;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            height: 60px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #409EFF 0%, #64b5ff 100%);
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 10px;
            color: white;
            font-weight: bold;
            font-size: 18px;
        }

        .logo-text {
            font-size: 20px;
            font-weight: 600;
            color: #409EFF;
        }

        .main-nav {
            display: flex;
            list-style: none;
            height: 100%;
        }

        .nav-item {
            padding: 0 20px;
            height: 100%;
            display: flex;
            align-items: center;
            cursor: pointer;
            position: relative;
            font-weight: 500;
        }

        .nav-item.active {
            color: #409EFF;
        }

        .nav-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #409EFF;
        }

        .user-info {
            display: flex;
            align-items: center;
        }

        .balance {
            margin-right: 20px;
            display: flex;
            align-items: center;
            background-color: #f0f9ff;
            padding: 6px 12px;
            border-radius: 16px;
            color: #409EFF;
            font-weight: 500;
        }

        .balance-icon {
            margin-right: 5px;
        }

        .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: #409EFF;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
        }

        /* 主要内容区域 */
        .main-container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 0 20px;
        }

        /* 轮播图区域 */
        .banner {
            height: 300px;
            background: linear-gradient(135deg, #409EFF 0%, #64b5ff 100%);
            border-radius: 12px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 40px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .banner-content {
            max-width: 50%;
            z-index: 2;
        }

        .banner-title {
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .banner-desc {
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .banner-btn {
            background-color: white;
            color: #409EFF;
            border: none;
            padding: 10px 24px;
            border-radius: 20px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }

        .banner-btn:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .banner-image {
            position: absolute;
            right: 0;
            bottom: 0;
            height: 100%;
            opacity: 0.8;
        }

        /* 分类导航 */
        .category-section {
            margin-bottom: 30px;
        }

        .section-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
        }

        .section-title-icon {
            width: 24px;
            height: 24px;
            background-color: #409EFF;
            border-radius: 6px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 10px;
            color: white;
            font-size: 14px;
        }

        .category-list {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
        }

        .category-item {
            background-color: white;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .category-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        }

        .category-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #f0f9ff;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto 15px;
            color: #409EFF;
            font-size: 20px;
        }

        .category-name {
            font-weight: 500;
        }

        /* 商品展示 */
        .product-section {
            margin-bottom: 40px;
        }

        .product-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .view-all {
            color: #409EFF;
            text-decoration: none;
            font-weight: 500;
        }

        .product-list {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        .product-card {
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: all 0.3s;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        }

        .product-image {
            height: 180px;
            background-color: #f5f7fa;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #909399;
            font-size: 14px;
        }

        .product-info {
            padding: 15px;
        }

        .product-name {
            font-weight: 500;
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .product-desc {
            color: #909399;
            font-size: 13px;
            margin-bottom: 10px;
            height: 36px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .product-price {
            color: #f56c6c;
            font-weight: 600;
            font-size: 18px;
            margin-bottom: 12px;
        }

        .product-actions {
            display: flex;
            justify-content: space-between;
        }

        .add-to-cart {
            background-color: #409EFF;
            color: white;
            border: none;
            padding: 6px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
        }

        .favorite-btn {
            background-color: transparent;
            border: 1px solid #dcdfe6;
            padding: 6px 10px;
            border-radius: 4px;
            cursor: pointer;
            color: #606266;
        }

        /* 公告区域 */
        .notice-section {
            background-color: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 30px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .notice-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .notice-title {
            font-weight: 600;
            margin-right: 15px;
        }

        .notice-list {
            list-style: none;
        }

        .notice-item {
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            align-items: center;
        }

        .notice-item:last-child {
            border-bottom: none;
        }

        .notice-badge {
            background-color: #f56c6c;
            color: white;
            font-size: 12px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-right: 10px;
        }

        .notice-content {
            flex: 1;
        }

        .notice-date {
            color: #909399;
            font-size: 13px;
        }

        /* 底部信息 */
        .footer {
            background-color: white;
            padding: 30px 0;
            margin-top: 50px;
            border-top: 1px solid #e4e7ed;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .footer-desc {
            color: #909399;
            max-width: 300px;
            line-height: 1.6;
        }

        .footer-links {
            display: flex;
        }

        .link-column {
            margin-right: 60px;
        }

        .link-title {
            font-weight: 600;
            margin-bottom: 15px;
        }

        .link-item {
            margin-bottom: 10px;
            color: #606266;
            cursor: pointer;
        }

        .link-item:hover {
            color: #409EFF;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            margin-top: 20px;
            border-top: 1px solid #e4e7ed;
            color: #909399;
            font-size: 14px;
        }

        /* 响应式设计 */
        @media (max-width: 1024px) {
            .product-list {
                grid-template-columns: repeat(3, 1fr);
            }

            .category-list {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 768px) {
            .nav-item {
                padding: 0 12px;
                font-size: 14px;
            }

            .balance {
                display: none;
            }

            .banner {
                height: 200px;
                padding: 0 20px;
            }

            .banner-title {
                font-size: 24px;
            }

            .banner-desc {
                font-size: 14px;
            }

            .product-list {
                grid-template-columns: repeat(2, 1fr);
            }

            .category-list {
                grid-template-columns: repeat(3, 1fr);
            }

            .footer-content {
                flex-direction: column;
            }

            .footer-links {
                margin-top: 30px;
            }
        }

        @media (max-width: 480px) {
            .nav-container {
                padding: 0 10px;
            }

            .logo-text {
                display: none;
            }

            .main-nav {
                display: none;
            }

            .banner {
                flex-direction: column;
                height: auto;
                padding: 20px;
                text-align: center;
            }

            .banner-content {
                max-width: 100%;
                margin-bottom: 20px;
            }

            .banner-image {
                position: relative;
                height: 150px;
            }

            .product-list {
                grid-template-columns: 1fr;
            }

            .category-list {
                grid-template-columns: repeat(2, 1fr);
            }
        }
    </style>
</head>
<body>
<!-- 顶部导航栏 -->
<header class="header">
    <div class="nav-container">
        <div class="logo">
            <div class="logo-icon">福</div>
            <div class="logo-text">企业福利商城</div>
        </div>

        <ul class="main-nav">
            <li class="nav-item active">首页</li>
            <li class="nav-item">商品分类</li>
            <li class="nav-item">福利卡兑换</li>
            <li class="nav-item">购物车</li>
            <li class="nav-item">个人中心</li>
        </ul>

        <div class="user-info">
            <div class="balance">
                <span class="balance-icon">¥</span>
                <span>1,280.50</span>
            </div>
            <div class="avatar">张</div>
        </div>
    </div>
</header>

<!-- 主要内容区域 -->
<div class="main-container">
    <!-- 轮播图/公告区域 -->
    <div class="banner">
        <div class="banner-content">
            <h1 class="banner-title">员工专属福利季</h1>
            <p class="banner-desc">本月上新50+精选商品，使用福利卡兑换享额外优惠！年度积分即将清零，请及时使用。</p>
            <button class="banner-btn">立即兑换</button>
        </div>
        <div class="banner-image">
            <!-- 这里应该是一张图片，暂时用CSS代替 -->
            <div style="width: 300px; height: 100%; background: rgba(255,255,255,0.2); border-radius: 10px 0 0 10px;"></div>
        </div>
    </div>

    <!-- 分类导航 -->
    <section class="category-section">
        <h2 class="section-title">
            <div class="section-title-icon">分</div>
            商品分类
        </h2>

        <div class="category-list">
            <div class="category-item">
                <div class="category-icon">🍎</div>
                <div class="category-name">食品生鲜</div>
            </div>
            <div class="category-item">
                <div class="category-icon">🏠</div>
                <div class="category-name">家居日用</div>
            </div>
            <div class="category-item">
                <div class="category-icon">🛒</div>
                <div class="category-name">粮油调味</div>
            </div>
            <div class="category-item">
                <div class="category-icon">🍵</div>
                <div class="category-name">休闲零食</div>
            </div>
            <div class="category-item">
                <div class="category-icon">🎁</div>
                <div class="category-name">节日礼品</div>
            </div>
        </div>
    </section>

    <!-- 热门商品 -->
    <section class="product-section">
        <div class="product-header">
            <h2 class="section-title">
                <div class="section-title-icon">热</div>
                热门商品
            </h2>
            <a href="#" class="view-all">查看全部 &gt;</a>
        </div>

        <div class="product-list">
            <div class="product-card">
                <div class="product-image">商品图片</div>
                <div class="product-info">
                    <div class="product-name">金龙鱼黄金比例食用调和油5L</div>
                    <div class="product-desc">精选优质原料，科学配比，适合中式烹饪</div>
                    <div class="product-price">¥ 89.90</div>
                    <div class="product-actions">
                        <button class="add-to-cart">加入购物车</button>
                        <button class="favorite-btn">收藏</button>
                    </div>
                </div>
            </div>

            <div class="product-card">
                <div class="product-image">商品图片</div>
                <div class="product-info">
                    <div class="product-name">福临门水晶米10kg</div>
                    <div class="product-desc">颗粒饱满，米香浓郁，家庭必备优质大米</div>
                    <div class="product-price">¥ 68.50</div>
                    <div class="product-actions">
                        <button class="add-to-cart">加入购物车</button>
                        <button class="favorite-btn">收藏</button>
                    </div>
                </div>
            </div>

            <div class="product-card">
                <div class="product-image">商品图片</div>
                <div class="product-info">
                    <div class="product-name">蓝月亮洗衣液套装</div>
                    <div class="product-desc">深层去渍，护色护衣，薰衣草清香</div>
                    <div class="product-price">¥ 45.80</div>
                    <div class="product-actions">
                        <button class="add-to-cart">加入购物车</button>
                        <button class="favorite-btn">收藏</button>
                    </div>
                </div>
            </div>

            <div class="product-card">
                <div class="product-image">商品图片</div>
                <div class="product-info">
                    <div class="product-name">中秋月饼礼盒装</div>
                    <div class="product-desc">精选原料，传统工艺，多种口味组合</div>
                    <div class="product-price">¥ 158.00</div>
                    <div class="product-actions">
                        <button class="add-to-cart">加入购物车</button>
                        <button class="favorite-btn">收藏</button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 新品上架 -->
    <section class="product-section">
        <div class="product-header">
            <h2 class="section-title">
                <div class="section-title-icon">新</div>
                新品上架
            </h2>
            <a href="#" class="view-all">查看全部 &gt;</a>
        </div>

        <div class="product-list">
            <div class="product-card">
                <div class="product-image">商品图片</div>
                <div class="product-info">
                    <div class="product-name">有机蔬菜礼盒</div>
                    <div class="product-desc">新鲜有机蔬菜，产地直供，健康生活首选</div>
                    <div class="product-price">¥ 78.00</div>
                    <div class="product-actions">
                        <button class="add-to-cart">加入购物车</button>
                        <button class="favorite-btn">收藏</button>
                    </div>
                </div>
            </div>

            <div class="product-card">
                <div class="product-image">商品图片</div>
                <div class="product-info">
                    <div class="product-name">智能保温杯</div>
                    <div class="product-desc">温度显示，长效保温，办公生活好伴侣</div>
                    <div class="product-price">¥ 129.00</div>
                    <div class="product-actions">
                        <button class="add-to-cart">加入购物车</button>
                        <button class="favorite-btn">收藏</button>
                    </div>
                </div>
            </div>

            <div class="product-card">
                <div class="product-image">商品图片</div>
                <div class="product-info">
                    <div class="product-name">进口零食大礼包</div>
                    <div class="product-desc">多国风味，独立包装，休闲时光好选择</div>
                    <div class="product-price">¥ 98.00</div>
                    <div class="product-actions">
                        <button class="add-to-cart">加入购物车</button>
                        <button class="favorite-btn">收藏</button>
                    </div>
                </div>
            </div>

            <div class="product-card">
                <div class="product-image">商品图片</div>
                <div class="product-info">
                    <div class="product-name">家庭清洁套装</div>
                    <div class="product-desc">多效清洁，环保配方，让家焕然一新</div>
                    <div class="product-price">¥ 56.80</div>
                    <div class="product-actions">
                        <button class="add-to-cart">加入购物车</button>
                        <button class="favorite-btn">收藏</button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 系统公告 -->
    <section class="notice-section">
        <div class="notice-header">
            <div class="notice-title">系统公告</div>
        </div>

        <ul class="notice-list">
            <li class="notice-item">
                <div class="notice-badge">新</div>
                <div class="notice-content">2023年第三季度福利卡发放通知</div>
                <div class="notice-date">2023-09-01</div>
            </li>
            <li class="notice-item">
                <div class="notice-badge">热</div>
                <div class="notice-content">中秋国庆双节福利兑换活动即将开始</div>
                <div class="notice-date">2023-08-28</div>
            </li>
            <li class="notice-item">
                <div class="notice-content">关于积分有效期及使用规则的说明</div>
                <div class="notice-date">2023-08-15</div>
            </li>
            <li class="notice-item">
                <div class="notice-content">系统维护通知：9月10日凌晨2点-4点</div>
                <div class="notice-date">2023-08-10</div>
            </li>
        </ul>
    </section>
</div>

<!-- 底部信息 -->
<footer class="footer">
    <div class="footer-content">
        <div class="footer-about">
            <div class="footer-logo">
                <div class="logo-icon">福</div>
                <div class="logo-text">企业福利商城</div>
            </div>
            <p class="footer-desc">
                企业员工专属福利平台，通过"卡+卡密"兑换机制，为员工提供安全便捷的福利兑换服务。
            </p>
        </div>

        <div class="footer-links">
            <div class="link-column">
                <div class="link-title">购物指南</div>
                <div class="link-item">购物流程</div>
                <div class="link-item">会员介绍</div>
                <div class="link-item">常见问题</div>
            </div>

            <div class="link-column">
                <div class="link-title">配送方式</div>
                <div class="link-item">上门自提</div>
                <div class="link-item">快递配送</div>
                <div class="link-item">配送费用</div>
            </div>

            <div class="link-column">
                <div class="link-title">售后服务</div>
                <div class="link-item">退款说明</div>
                <div class="link-item">返修/退换货</div>
                <div class="link-item">取消订单</div>
            </div>

            <div class="link-column">
                <div class="link-title">关于我们</div>
                <div class="link-item">联系我们</div>
                <div class="link-item">隐私协议</div>
                <div class="link-item">用户协议</div>
            </div>
        </div>
    </div>

    <div class="copyright">
        © 2023 企业福利商城 版权所有 | 客服热线：400-123-4567
    </div>
</footer>

<script>
    // 简单的交互功能
    document.addEventListener('DOMContentLoaded', function() {
        // 导航菜单点击效果
        const navItems = document.querySelectorAll('.nav-item');
        navItems.forEach(item => {
            item.addEventListener('click', function() {
                navItems.forEach(i => i.classList.remove('active'));
                this.classList.add('active');
            });
        });

        // 分类项点击效果
        const categoryItems = document.querySelectorAll('.category-item');
        categoryItems.forEach(item => {
            item.addEventListener('click', function() {
                alert('跳转到分类页面: ' + this.querySelector('.category-name').textContent);
            });
        });

        // 商品操作按钮
        const addToCartBtns = document.querySelectorAll('.add-to-cart');
        addToCartBtns.forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.stopPropagation();
                alert('商品已加入购物车');
            });
        });

        const favoriteBtns = document.querySelectorAll('.favorite-btn');
        favoriteBtns.forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.stopPropagation();
                this.textContent = this.textContent === '收藏' ? '已收藏' : '收藏';
            });
        });

        // 商品卡片点击跳转详情
        const productCards = document.querySelectorAll('.product-card');
        productCards.forEach(card => {
            card.addEventListener('click', function() {
                alert('跳转到商品详情页');
            });
        });
    });
</script>
</body>
</html>
